<?php

/**
 * 商标管理系统 v1.0.1
 *
 * 商业运营到ubtm.cn官网进行授权使用。
 *
 * (c) cighsen02 <xiayu@959602.com>
 *
 * Create at：2025.05.01
*/

namespace App\Http\Controllers\Auth;

use App\Http\Controllers\Controller;
use App\Services\Role\User as UserRole;
use Illuminate\Http\JsonResponse;
use Illuminate\Http\Request;

/**
 * 会员面板中心
 */
class DashboardController extends Controller
{
    public function index(Request $request, UserRole $role): JsonResponse
    {
        return $this->sendResponse($role->list(), 'success');
    }
}
